package com.hundsun.yr.universal.p2p.config;


/**
 * @version V1.0
 * @Title: Constants.java
 * @Description: 全局常量
 * @date 2015-10-15 上午9:02:50
 * @author:hejun.shen
 * @email:shenhj15971@hundsun.com
 * @replace author:
 * @replace date:
 */
public class Constants {

    /**eventTag是用来接受eventbus发出消息的回调的**/

    /**
     * 开始事件
     */
    public static final int EVENT_BEGIN = 0X100;
    /**
     * 加载数据事件
     */
    public static final int EVENT_DATA = EVENT_BEGIN + 10;
    public static final int EVENT_DATA_LOGIN = EVENT_BEGIN + 100;
    public static final int EVENT_DATA_LOGIN_EXPIRED = EVENT_BEGIN + 1111;
    public static final int EVENT_DATA_LOGIN_EXPIRED2 = EVENT_BEGIN + 1112;
    /**
     * 刷新界面
     */
    public static final int EVENT_REFRESH_DATA = EVENT_BEGIN + 20;
    public static final int EVENT_REFRESH_LOAN_DATA = EVENT_BEGIN + 70;
    public static final int EVENT_REFRESH_RISK_DATA = EVENT_BEGIN + 80;
    public static final int EVENT_REFRESH_AUTOMATIC_LOGIN = EVENT_BEGIN + 90;
    /**
     * 刷新用户数据
     */
    public static final int EVENT_REFRESH_INFO_DATA = EVENT_BEGIN + +60;
    /**
     * 加载更多事件
     */
    public static final int EVENT_LOAD_MORE_DATA = EVENT_BEGIN + 30;
    /**
     * 进度请求
     */
    public static final int EVENT_PROGRESS = EVENT_BEGIN + 40;
    /**
     * 不关闭进度请求
     */
    public static final int EVENT_UNCOLSEPROGRESS = EVENT_BEGIN + 50;

    /**
     * 大页码
     */
    public static final int PAGESIZE_LARGE = 20;
    /**
     * 中页码
     */
    public static final int PAGESIZE_MIDDLE = 10;
    /**
     * 小页码
     */
    public static final int PAGESIZE_SMALL = 5;


    /**
     * 0000请求成功
     */
    public static final String REQUESTCODE_0000 = "0000";
    /**
     * 1111请求错误
     */
    public static final String REQUESTCODE_1111 = "1111";
    /**
     * 1001授权过期
     */
    public static final String REQUESTCODE_1001 = "1001";
    /**
     * 1002服务阻断
     */
    public static final String REQUESTCODE_1002 = "1002";
    /**
     * 1003业务错误
     */
    public static final String REQUESTCODE_1003 = "1003";
    /**
     * 数据请求成功
     */
    public static final String RESPONSE_SUCCESS = "SUCCESS";
    /**
     * 数据请求失败
     */
    public static final String RESPONSE_FLOW_ERR = "FLOW_ERR";


    /**
     * 新浪
     */
    public static final String REDIRECT_URL = "https://api.weibo.com/oauth2/default.html";

    //------------------------------------------------------------------------------------------------
    /**
     * 请求成功
     */
    public static final String REQUESTCODE_000000 = "000000";

    /**
     * 用户名或密码错误
     */
    public static final String REQUESTCODE_200000 = "200000";

    /**
     * 已经发送过验证码
     */
    public static final String REQUESTCODE_400001 = "400001";

    /**
     * 该用户已经存在
     */
    public static final String REQUESTCODE_200110 = "200110";

    /**
     * 请先设置交易密码
     */
    public static final String REQUESTCODE_200410 = "200410";

    /**
     * 该用户无授信额度
     */
    public static final String REQUESTCODE_200500 = "200500";

    /**
     * 为找到产品信息
     */
    public static final String REQUESTCODE_300000 = "300000";

    /**
     * 验签失败，业务逻辑是重新访问一次登陆接口
     */
    public static final String REQUESTCODE_100500 = "100500";

    /**
     * 未开户
     */
    public static final String REQUESTCODE_200401 = "200401";

    /***
     * 系统繁忙
     */
    public static final String REQUESTCODE_100070 = "100070";

    /**
     * Header值为空
     */
    public static final String REQUESTCODE_100020 = "100020";

    /**
     * 缺少http Header:x-divice-id
     */
    public static final String REQUESTCODE_100010 = "100010";

    /**
     * 登陆过期
     */
    public static final String REQUESTCODE_100600 = "100600";

    /**
     * 未支付订单
     */
    public static final String REQUESTCODE_300304 = "300304";

    /**
     * 未做风险评估
     */
    public static final String REQUESTCODE_300329 = "300329";

    /**
     * 余额不足
     */
    public static final String REQUESTCODE_300314 = "300314";

    /**
     * 已经签到了
     */
    public static final String REQUESTCODE_200709 = "200709";

    /**
     * 还款授权未签约,请先签约
     */
    public static final String REQUESTCODE_700020 = "700020";

    /**
     * 需还款金额大于还款授权最大金额,请重新签约
     */
    public static final String REQUESTCODE_700021 = "700021";
    /**
     * 新增加还款接口返回code码
     */
    public static final String REQUESTCODE_000001 = "000001";

    public static final String REQUESTCODE_000002="000002";

    public static final String REQUESTCODE_000003="000003";

    public static final String REQUESTCODE_000004="000004";

    public static final String REQUESTCODE_000005="000005";
}